import { Navigate } from 'react-router-dom'
import Home from '../views/Home'
import Eat from '../views/Eat'
import Payment from '../views/Payment'
const routes = [
  {
    path: '/',
    element: <Navigate to="/home"></Navigate>
  },
  {
    path: '/home',
    element: <Home></Home>
  },
  {
    path: '/eat',
    element: <Eat></Eat>
  },
  {
    path: '/order',
    element: <div>订单</div>
  },
  {
    path: '/me',
    element: <div>我的</div>
  },
  {
    path: '/payment',
    element: <Payment></Payment>
  }
]
export default routes
